home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 2
/
Aminet AMIGA CDROM (1994)(Walnut Creek)[Feb 1994][W.O. 44790-1].iso
/
Aminet
/
dev
/
cross
/
sasmv14.dms
/
sasmv14.adf
/
examples
/
fwdref.s
< prev
next >
Wrap
Text File
|
1993-05-22
|
1KB
|
61 lines
*******************************************
**
** How forward references work ?
**
** © 1993 by Infernal Byte Systems, INC.
**
*******************************************
heap O=1024
flo= xxx-xx ;size of some code
flo2= flo*2 ;double size of some code
exp=flo2 ;show us the code...
aa= 100 ;some label
ds.b 100,0
ds.b aa,0
xx: lda aa
xxx: cmp aa
ldx aa
exp= aa ;show us some label
.say !
.say PASS ONE FINISHED
- The above code will (for example) create the following log-file:
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-1>sasm src/fwdref.s stat
-
-WD65C816 S-NES Macro Assembler v1.0 [MC68030] © 1992/3 by Infernal Byte, INC.
-written by Florian W. Sauer & Stefan M. Schulze - 24/11/1992
-
-[reading][assembling]
-
-[exp] at #26 PC=$0080CE evaluates to 100 (=$000064)
-
-PASS ONE FINISHED
-
-[exp] at #15 PC=$008000 evaluates to 4 (=$000004)
-
-[writing][done]
-
-STATS: Overall 30 lines of code have been assembled with 0 warning(s)
- in 0.12 seconds into 206 bytes of objectcode. That means an avg
- speed of 230 LPS or 13800 LPM. Oh,no... using 3.58MHZ clock?
- The 5 labels produced only 0 collision(s) in the hasharea and
- about 3 forward references have been resolved.
- I've utilized 1044577 bytes of ram to assemble, i.e. 13% of your
- memory capacities were used.
* You see how it works? Watch the exp in source & when they're outputted...
* Thats the way the cookie crumbles..